{template common/header}
{template user/userheader}
<div class="container mt20">
	<div class="span12 main">
		{template user/usernav}
		<div class="messages">
			<h4 class="mt10 text_c">
			{lang my_alert}
			</h4>
              <ul class="ms_list">
              	{loop $messages $message}
              	<li> 
					<a href="javascript:void(0);">
						<img src="{avatar($message['user_id'], 'middle')}" class="avatar photo-middle" style="margin-top: 5px;">
					</a>
			    	<p>
						<span><a href="{url home/user?uid=$message['user_id']}">{$message['fnickname']}</a> {lang toyour}</span>
					</p>
					<p>
						{if $message['act_code']=='postcomment'}
							{lang postcomment:view} <a href="{url detail/index?shareid=$message['rel_id']}">$message['act_title']</a>
						{elseif $message['act_code']=='addlike'}
							{lang addlike:view} <a href="{url detail/index?shareid=$message['rel_id']}">$message['act_title']</a>
						{elseif $message['act_code']=='follow'}
							{lang follow:view} <a href="{url detail/index?shareid=$message['rel_id']}">$message['act_title']</a>
						{elseif $message['act_code']=='addlikealbum'}
							{lang addlikealbum:view} <a href="{url detail/index?shareid=$message['rel_id']}">$message['act_title']</a>
						{/if}
					</p>
					<p>
						<em class="time">{date $message['create_time']}</em>
					</p>
				</li>
				{/loop}
              </ul>
              <div class="pull-right">{$pages}</div>
       </div>
	</div>
</div>
{template common/footer}
